package com.wzdigit.wms.basic.domain.oqc;

import com.baomidou.mybatisplus.annotation.*;
import com.wzdigit.framework.orm.model.BasicDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author Any
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("WMS_OQC_INSP")
@KeySequence(value = "WMS_OQC_INSP_SEQ", clazz = Integer.class)
public class OqcInsp extends BasicDomain {
    private static final long serialVersionUID = 1L;

    /**
     * 送检单ID
     */
    @ApiModelProperty(value = "送检单ID")
    @TableId(value = "OQC_INSP_ID", type = IdType.INPUT)
    private Integer oqcInspId;
    /**
     * 送检单号
     */
    @ApiModelProperty(value = "送检单号")
    @TableField(value = "INSP_NO")
    private String inspNo;
    /**
     * 销售订单
     */
    @ApiModelProperty(value = "销售订单")
    @TableField(value = "SO_NO")
    private String soNo;
    /**
     * 销售订单行号
     */
    @ApiModelProperty(value = "销售订单行号")
    @TableField(value = "SO_ITEM")
    private String soItem;
    /**
     * 生产工单
     */
    @ApiModelProperty(value = "生产工单")
    @TableField(value = "PRD_WO")
    private String prdWo;
    /**
     * 工厂(组织)
     */
    @ApiModelProperty(value = "工厂(组织)")
    @TableField(value = "FACTORY")
    private String factory;
    /**
     * 制造工厂
     */
    @ApiModelProperty(value = "制造工厂")
    @TableField(value = "MFG_PLANT")
    private String mfgPlant;
    /**
     * 产线
     */
    @ApiModelProperty(value = "产线")
    @TableField(value = "MFG_LINE")
    private String mfgLine;
    /**
     * 送检数量
     */
    @ApiModelProperty(value = "送检数量")
    @TableField(value = "INSP_QTY")
    private Integer inspQty;
    /**
     * 货品编码
     */
    @ApiModelProperty(value = "货品编码")
    @TableField(value = "SKU_CODE")
    private String skuCode;
    /**
     * 货品描述
     */
    @ApiModelProperty(value = "货品描述")
    @TableField(value = "SKU_DESC")
    private String skuDesc;
    /**
     * 送检单类型
     */
    @ApiModelProperty(value = "送检单类型")
    @TableField(value = "INSP_TYPE")
    private Integer inspType;
    /**
     * 判检结果
     */
    @ApiModelProperty(value = "判检结果")
    @TableField(value = "INSP_RESULT")
    private Integer inspResult;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField(value = "STATUS")
    private Integer status;
    /**
     * 送检日期
     */
    @ApiModelProperty(value = "送检日期")
    @TableField(value = "INSP_DATE")
    private Date inspDate;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField(value = "COMMENTS")
    private String comments;

    /**
     * 上一次的状态
     */
    @ApiModelProperty(value = "上一次的状态")
    @TableField(value = "LAST_STATUS")
    private Integer lastStatus;

    /**
     * 检验单ID
     */
    @ApiModelProperty(value = "QMS_OQC_ID")
    @TableField(value = "QMS_OQC_ID")
    private Integer qmsOqcId;

}
